<extend name="Users:layout" />
<block name="content">
 <link rel="stylesheet" type="text/css" href="__PUBLIC__/plugins/webuploader/style.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/plugins/webuploader/webuploader.css" />
<script type="text/javascript" src="__PUBLIC__/plugins/webuploader/webuploader.js"></script>
<script type="text/javascript" src="__JS__/rejectionbatchupload.js"></script>
    <body style="background-color:#f5f5f5;">
    <div class='wst-page-header'>买家中心 > 拒收订单</div>
        <div style="text-align:center;">
        	<div class="wst-appraise-box" style="margin:0px;">
				<div class='main' style="border-style:none;">
					<if condition='$goods["sId"] eq ""'>
					<div id="{$goods['goodsId']}_appraise" class="appraise-box">
						<div class="main-box">
							<!--拒收原因-->
							<div class="item" style="margin-left:-205px;">
								<div class='title'>拒收原因<span style="color:red">*</span>：</div>				
								<div class='content'>									
									<select id="reason" style="width:180px;margin-left:3px;"><option value="0">多拍/错拍/不想要</option><option value="1">服务承诺</option><option value="2">商品少件/破损/污渍等</option><option value="3">功能未达标准效果</option><option value="4">质量问题</option><option value="5">功能缺失</option><option value="6">假冒品牌</option><option value="7">外观/型号/参数描述不符</option><option value="8">卖家发错货</option><option value="9">其他</option></select>
								</div>
								<div style="clear: both;"></div>
							</div>
							<div class="item" style="margin-left:-205px;">
								<div class='title'>退款金额<span style="color:red">*</span>：</div>				
								<div class='content' style="color:#777">									
									<input style="width:170px" type="text" disabled="true" value="￥{$needPay}(含运费￥{$deliverMoney}元)" >(不可修改)
								</div>
								<div style="clear: both;"></div>
							</div>
							<!--拒收说明-->
							<div class="item"  style="margin-left:-205px;">
								<div class='title' >拒收说明：<div style="margin-top:-20px;margin-right:20px;color:#777">(可不填)</div></div>					
								<div class='content'>									
									<textarea rows="3" cols="70" style="width:610px;" id="rejectionRemarks" maxlength="100" placeholder="请输入100字以内的拒收说明"></textarea>

								</div>
								<div style="clear: both;"></div>
							</div>
							<!--晒图-->
							<div class="item">
							<div style="float:left;margin-left:-75px;">上传凭证：<div style="margin-top:-20px;margin-right:20px;color:#777">(最多3张)</div></div>
					       	<div id='galleryImgs' class='wst-gallery-imgs'>
					       		<if condition="count($object['shopAds']) eq 0" >
			                       <div id="wrapper">
			                           <div id="container" style="width:620px;height: 240px;">
			                              <div id="uploader">
			                               <div class="queueList">
			                                   <div id="dndArea" class="placeholder" style="width:595px;min-height: 60px;">
			                                      <div id="filePicker" style="margin-top: -130px;"></div>
			                                      </div>
			                                   <ul class="filelist" style="clear:none;margin-right: 0px;"></ul>
			                               </div>
			                             <div class="statusBar" style="display:none;min-height:20px;">
			                               <div class="progress">
			                                    <span class="text">0%</span>
			                                    <span class="percentage"></span>
			                               </div>
			                                    <div class="info"></div>
			                               <div class="btns">
			                                 <div id="filePicker2" class="webuploader-containe webuploader-container"></div><div class="uploadBtn state-finish">开始上传</div>
			                               </div>
			                            </div>
			                         </div>
			                      </div>
			                   </div>
			               <else/>
			               	<div id="wrapper">
			                       <div id="container">
			                       		<div style="border-bottom:1px solid #dadada;padding-left:10px; ">
			                          		图片大小:1400 x 350 (px)(格式为 gif, jpg, jpeg, png)
			                   			</div>
			                          	<div id="uploader">
			                             <div class="queueList">
			                                 <div id="dndArea" class="placeholder element-invisible">
			                                    <div id="filePicker" class="webuploader-container"></div>
			                                    </div>
			                                 <ul class="filelist">
			                                 	<volist name="object['shopAds']" id="vo" key='i'>
											       <li style="border: 1px solid rgb(59, 114, 165)" order="100" onmouseover="imglimouseover(this)" onmouseout="imglimouseout(this)">
											       		<input type="hidden" class="gallery-img" iv="{$vo.adImg_thumb}" v="{$vo.adImg}" />
												       <img width="152" height="152" src="__ROOT__/{$vo.adImg_thumb}"><span class="setdef" style="display:none">默认</span><span class="setdel" onclick="imglidel(this)" style="display:none">删除</span>
											       	   <input class="gallery-img-url"  placeholder="广告路径" type="text" style="width:118px;" value="{$vo.adUrl}"/>
											       </li>
												</volist>                             	
			                                 </ul>
			                            </div>
			                            <div class="statusBar" style="">
			                               <div class="progress">
			                                    <span class="text"></span>
			                                    <span class="percentage"></span>
			                               </div>
			                               <div class="info"></div>
			                               <div class="btns">
			                                  <div id="filePicker2" class="webuploader-containe webuploader-container"></div>
			                                  <div class="uploadBtn state-finish">开始上传</div>
			                               </div>
			                            </div>
			                        </div>
			                    </div>
			                 </div>
			               </if>
					       </div>
					       <div style='clear:both;'></div>
					       </div>
					       <input type="hidden" id="orderId" value="{$orderId}">
					       <input type="hidden" id="type" value="{$type}">
					       <input type="hidden" id="shop" value="{$shop}">
					       <input type="hidden" id="needPay" value="{$needPay}">
							<div id="checkout" class="btn-box" >						
								<a class="btn-submit" href="javascript:;" onclick="addRejection()">
									<button class='wst-btn-query'>确认</button>
								</a>
								<button type="button" class="wst-btn-query" onclick='javascript:location.href="{$referer}"'>返&nbsp;回</button>
								<div style="clear: both;"></div>
							</div>
							<div style="clear: both;"></div>
						</div>
					</div>
					</if>				
				</div>
			</div>
        </div>
    </body>
</block>
